home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / honeytrouble.swf / scripts / frame_14 / DoAction.as < prev   
Encoding:
Text File  |  2007-09-27  |  908 b   |  32 lines

  1. function getTB()
  2. {
  3.    trace("***********************************88");
  4.    var _loc2_ = random(4) + 1;
  5.    TBMC.attachMovie("tebie","tebie" + TBMC.getNextHighestDepth(),TBMC.getNextHighestDepth(),{_x:_root.beijingGK["st" + _loc2_]._x,_y:_root.beijingGK["st" + _loc2_]._y});
  6. }
  7. function ShootTebie(type)
  8. {
  9.    tebie[type - 1] = 1;
  10.    var _loc3_ = true;
  11.    trace("tebie:" + tebie);
  12.    var _loc2_ = 0;
  13.    while(_loc2_ < tebie.length)
  14.    {
  15.       if(tebie[_loc2_] == 0)
  16.       {
  17.          _loc3_ = false;
  18.          break;
  19.       }
  20.       _loc2_ = _loc2_ + 1;
  21.    }
  22.    if(_loc3_)
  23.    {
  24.       _root.attachMovie("movieClassMC","movieClassMC" + _root.getNextHighestDepth(),_root.getNextHighestDepth(),{_x:158,_y:172});
  25.       _root.setGoal(400);
  26.       _root.next_leve_func();
  27.       tebie = [0,0,0,0,0];
  28.    }
  29. }
  30. _root.createEmptyMovieClip("TBMC",_root.getNextHighestDepth());
  31. var tebie = [0,0,0,0,0];
  32.